* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-thumb {
  border-radius: 10px;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
  background: linear-gradient(20deg, #b1dbf0, #9b7eeb);
}
::-webkit-scrollbar-track {
  background: transparent;
}
.body-bg {
  width: 100%;
  height: 100vh;
  background-image: url('../images/bg01.jpg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  filter: blur(60px);
  opacity: 0.8;
  position: fixed;
  z-index: -10;
  top: 0;
  left: 0;
}
.container {
  width: 100%;
  max-width: 768px;
  height: 100%;
  max-height: 720px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 6px;
  box-shadow: 1px 2px 8px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}
@media (max-width: 768px) {
  .container {
    max-width: 100%;
    max-height: 100%;
    box-shadow: none;
    border-radius: 0;
  }
}
.up-part {
  position: absolute;
  width: 100%;
  height: calc(100% - 200px);
  background: #f3f3f3;
  top: 0;
  left: 0;
}
.up-part .chat-header {
  width: 100%;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  position: relative;
  background: #f9f9f9;
}
.up-part .chat-header .whispers {
  position: absolute;
  left: 20px;
  top: 0;
  height: 40px;
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #666;
}
.up-part .chat-header .whispers .box {
  width: 60px;
  height: 30px;
  background: #f8f8f8;
  border-radius: 30px;
  margin-right: 5px;
  position: relative;
  cursor: pointer;
  box-shadow: 0 0 1px 1px rgba(0, 0, 0, 0.08) inset;
}
.up-part .chat-header .whispers .box::after {
  content: '';
  width: 26px;
  height: 26px;
  border-radius: 26px;
  background: #ccc;
  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
  position: absolute;
  left: 2px;
  top: 2px;
  transition: 0.15s linear;
}
.up-part .chat-header .whispers .box.active::after {
  left: 32px;
  background: #1c99a0;
}
.up-part .chat-header .status {
  width: 100%;
  height: 40px;
  line-height: 40px;
  text-align: center;
  font-size: 12px;
  color: #bbb;
}
.up-part .chat-header .status.close {
  color: #f33;
}
@media (max-width: 768px) {
  .up-part .chat-header {
    padding: 0 12px;
    justify-content: space-between;
  }
  .up-part .chat-header .whispers {
    position: static;
    left: 0;
    top: 0;
  }
  .up-part .chat-header .status {
    width: auto;
  }
}
.up-part .chat-wrap {
  position: absolute;
  width: 100%;
  height: calc(100% - 40px);
  padding: 20px;
  top: 40px;
  left: 0;
  overflow-y: scroll;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}
.up-part .chat-box {
  width: 100%;
  height: auto;
  margin-top: 15px;
  display: flex;
  flex-wrap: wrap;
}
.up-part .chat-box:nth-child(1) {
  margin-top: 0;
}
.up-part .chat-box .nickname-time {
  width: 100%;
  line-height: 1;
  display: flex;
  align-items: center;
  color: #888;
  font-size: 12px;
  margin-bottom: 5px;
}
.up-part .chat-box .nickname-time .time {
  margin: 0 10px;
  color: #aaa;
  font-size: 10px;
}
.up-part .chat-box.left .time {
  justify-content: flex-start;
}
.up-part .chat-box.left .nickname-time {
  padding-left: 50px;
}
.up-part .chat-box.left .content-box::after {
  left: -15px;
}
.up-part .chat-box.right {
  flex-direction: row-reverse;
}
.up-part .chat-box.right .nickname-time {
  flex-direction: row-reverse;
  padding-right: 50px;
}
.up-part .chat-box.right .content-box {
  margin-left: 0;
  margin-right: 10px;
  background: #33b0c5;
  color: #fff;
}
.up-part .chat-box.right .content-box::after {
  border-right-color: #33b0c5;
  transform: rotate(180deg);
  right: -15px;
}
.up-part .chat-box.right .img-box {
  margin-left: 0;
  margin-right: 10px;
}
.up-part .headimg {
  width: 40px;
  height: 40px;
  border-radius: 40px;
  background: #86acb9;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center center;
  overflow: hidden;
  margin-top: -15px;
}
.up-part .content-box {
  width: auto;
  max-width: calc(100% - 60px);
  padding: 15px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.05);
  margin-left: 10px;
  word-break: break-all;
  clear: both;
  position: relative;
}
.up-part .content-box::after {
  position: absolute;
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-top: solid 7px transparent;
  border-left: solid 8px transparent;
  border-bottom: solid 7px transparent;
  border-right: solid 8px #fff;
  border-radius: 2px;
  top: 10px;
  z-index: 1;
}
.up-part .content-box .txt {
  line-height: 20px;
  min-height: 20px;
  font-size: 15px;
}
.up-part .img-box {
  display: block;
  width: auto;
  height: auto;
  position: relative;
}
.up-part .img-box .img {
  display: inline-block;
  width: auto;
  height: 100px;
  border-radius: 6px;
  overflow: hidden;
  margin-left: 10px;
}
.up-part .img-box .iconfont {
  display: inline-block;
  width: 24px;
  height: 24px;
  text-align: center;
  line-height: 24px;
  font-size: 18px;
  position: absolute;
  bottom: 10px;
  color: #aaa;
  transform: rotate(0);
  animation: loading 1s linear infinite;
  left: -24px;
}
@keyframes loading {
  0% {
    transform: rotate(0);
  }
  100% {
    transform: rotate(360deg);
  }
}
.under-part {
  position: absolute;
  width: 100%;
  height: 200px;
  background: #f9f9f9;
  left: 0;
  bottom: 0;
  border-top: solid 1px #ededed;
}
.under-part .more-feature {
  width: 100%;
  height: 40px;
  padding: 0 10px;
  display: flex;
  align-items: center;
}
.under-part .more-feature .box {
  display: inline-block;
  width: 40px;
  height: 40x;
  text-align: center;
  line-height: 40px;
  cursor: pointer;
  transition: 0.05s linear;
}
.under-part .more-feature .box:active {
  transform: scale(0.95);
}
.under-part .more-feature .box input[type='file'] {
  display: none;
}
.under-part .more-feature .box .iconfont {
  color: #aaa;
  font-size: 20px;
}
.under-part textarea {
  position: absolute;
  width: 100%;
  max-width: 100%;
  min-width: 100%;
  height: calc(100% - 95px);
  max-height: calc(100% - 95px);
  min-height: calc(100% - 95px);
  border: none;
  outline: none;
  top: 40px;
  left: 0;
  padding: 5px 20px;
  background: transparent;
  font-size: 15px;
}
.under-part .btn-wrap {
  width: 100%;
  height: 55px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: absolute;
  bottom: 0;
  right: 0;
}
.under-part .btn-wrap .btn {
  width: 64px;
  height: 30px;
  border-radius: 6px;
  background: #1c99a0;
  color: #fff;
  border: none;
  outline: none;
  font-size: 13px;
  cursor: pointer;
  transition: 0.1s linear;
}
.under-part .btn-wrap .btn:hover {
  background: #0a6e74;
}
.under-part .btn-wrap .btn:active {
  box-shadow: 1px 2px 6px rgba(0, 0, 0, 0.3) inset;
}
